package com.newway.back.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.newway.common.result.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("article_comments")
public class ArticleComments extends BaseEntity {

    private Integer id;

    private Integer articleId;

    private String userId;

    private String userName;

    private String userAvatar;

    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
